/******************************************************************************
 * @Filename     : wdt.h
 *
 * @Version      : V2.0
 * @Subversion   : $
 * @Last modified: 02/20/2017 16:02:55
 * @Modified by  : Chen Bo
 *
 * @Brief        : WDT driver header file
 *
 * Copyright (C) 2017 SKYRELAY Technology co.,Ltd All rights reserved.
 *****************************************************************************/

#ifndef __RC2412_WDT_H__
#define __RC2412_WDT_H__

#ifdef __cplusplus
extern "C"
{
#endif

#include "../../periph_def/rc2412_wdt_def.h"



#if 0
/**
 * @brief This function enables the WDT time-out interrupt
 */
__STATIC_INLINE void WDT_EnableInt(void)
{
    WDT->CON |= WDT_IE_Msk;
    return;
}

/**
 * @brief This function disables the WDT time-out interrupt
 */
__STATIC_INLINE void WDT_DisableInt(void)
{
    WDT->CON &= !WDT_IE_Msk;
    return;
}

void WDT_Enable(void);
void WDT_Disable(void);
void  WDT_Open(uint16_t u16comparator,
               uint8_t u8EnableInt);
void  WDT_Set_ms( uint16_t u16Msec,
                  uint8_t u8EnableInt);
void WDT_Reset(void);
uint32_t Caliber_Wdtclk(void);
#endif


void WDT_Enable(void);
void WDT_Disable(void);
void WDT_Reset(void);

#ifdef __cplusplus
}
#endif

#endif //__WDT_H__

/*** (C) COPYRIGHT 2017 SKYRELAY Technology co.,Ltd ***/
